package com.example.qjia.ui.activity;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import com.example.qjia.R;


import android.os.Handler;
public class WelcomeActivity extends AppCompatActivity {

     Handler handler=new Handler();
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_welcome);
        isfirst();
    }

    private void isfirst() {

        handler.postDelayed(new Runnable() {
            @Override
            public void run() {
                Intent intent =new Intent(WelcomeActivity.this,LoginActivity.class);
                startActivity(intent);
                close();


            }
        },3000);


    }

    void close() {
        this.finish();
    }
}
